package team.yidong.fenda.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import team.yidong.fenda.entity.QuestionURL;

import java.util.List;

/**
 * Created by xuanlong on 2017/10/20.
 */
@Repository
public interface QuestionURLRepository extends JpaRepository<QuestionURL, Integer> {
    @Query("select url from QuestionURL url join  url.question question where question.id=?1")
    List<QuestionURL> findQuestionUrl(Integer questionId);
}
